<?php
namespace App\Http\Controllers\ApiUser;

use App\Utilitys\AliSms;
use Illuminate\Http\Request;

class SmsController extends BaseController
{
    //短信

    public function test(Request $request)
    {
        $phone = $request->post('phone', '');
        $code = $request->post('code', '');
        $phone = $phone ? $phone : '15988129456';
        $code = $code ? $code : '1234';
        $obj = new AliSms();
        $res = $obj->send($phone, $code);
        ddd($res);
    }
}